from PySide2.QtWidgets import QApplication, QMainWindow, QPushButton, QPlainTextEdit


def handle_calc():
    print('统计按钮被点击了')


app = QApplication([])

window = QMainWindow()
window.resize(500, 400)
window.move(300, 310)
window.setWindowTitle('薪资统计')

textEdit = QPlainTextEdit(window)
textEdit.setPlaceholderText("请输入薪资表")
textEdit.move(10, 25)
textEdit.resize(300, 350)

button = QPushButton('统计', window)
button.move(380, 80)
button.clicked.connect(handle_calc)

window.show()

app.exec_()
# PySide6 是 exec 而不是 exec_
